package com.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.pojo.dto.ArticleDTO;
import com.blog.pojo.entity.Article;

import java.util.List;

public interface ArticleService extends IService<Article> {
    IPage<Article> pageQuery(Integer pageNum, Integer pageSize, String title, Long categoryId, Long status);

    void addArticle(ArticleDTO articleDTO);

    void deleteBatchArticle(List<Long> ids);

    void deleteOneArticle(Long id);

    void updateArticle(ArticleDTO articleDTO);

    Article getArticleDetail(Long id);

    Long getArticleCount();

    List<Article> getArticleAll();

    IPage<Article> searchArticleHighLightPage(Integer pageNum, Integer pageSize, Long categoryId, String searchContent);
}
